package api_.collectionTest;

public class LinkedListQueueDemo
{
    public static void main(String[] args)
    {
        LinkedListQueue linkedListQueue = new LinkedListQueue();
        linkedListQueue.push("1");
        linkedListQueue.push("2");
        linkedListQueue.push("3");
        linkedListQueue.push("4");
        linkedListQueue.push("5");
        linkedListQueue.push("6");
        System.out.println(linkedListQueue.pop());
        System.out.println(linkedListQueue);
        System.out.println(linkedListQueue.pop());
        System.out.println(linkedListQueue);
        linkedListQueue.pop();
        linkedListQueue.pop();
        linkedListQueue.pop();
        linkedListQueue.pop();
        linkedListQueue.pop();
        System.out.println(linkedListQueue.pop());

    }
}


/**
    public static <T extends Enum<?>> T getRandomEnum(Class<? extends Enum<?>>... enumClasses) {
        int randomClassIndex = ThreadLocalRandom.current().nextInt(enumClasses.length);
        Class<? extends Enum<?>> selectedEnumClass = enumClasses[randomClassIndex];

        // Get the constants of the selected Enum class
        Enum<?>[] enumConstants = selectedEnumClass.getEnumConstants();
        if (enumConstants.length == 0) {
            throw new IllegalArgumentException("Enum class " + selectedEnumClass.getName() + " has no constants.");
        }

        // Randomly select one element from the selected Enum class
        int randomElementIndex = ThreadLocalRandom.current().nextInt(enumConstants.length);
        return (T) enumConstants[randomElementIndex];
    }
 */